﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using T.AuditField;
using static T.Materials.Domain.Enum.Enums;

namespace T.Materials.Domain.Model
{
    /// <summary>
    /// 物资领用
    /// </summary>
    public class MaterialRequisition : AuditFields
    {
        /// <summary>
        /// 物资领用ID
        /// </summary>
        [Key]
        public int MaterialRequisitionId { get; set; }

        /// <summary>
        /// 公司ID全球唯一标识符
        /// </summary>
        public string? CompanyID { get; set; }

        /// <summary>
        /// 用户ID
        /// </summary>
        public int User_Id { get; set; }

        /// <summary>
        /// 物资与入库ID
        /// </summary>
        public int MaterialStoreId { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        public string? Title { get; set; }

        /// <summary>
        /// 用途描述
        /// </summary>
        public string? UsageDescription { get; set; }

        /// <summary>
        /// 领用人
        /// </summary>
        public string? Recipient { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string? MaterialRequisitNotes { get; set; }

        /// <summary>
        /// 领用日期
        /// </summary>
        public DateTime? CollectionDate { get; set; }

        /// <summary>
        /// 审批状态
        /// </summary>
        public ApprovalStatus? ApprovalStatus { get; set; }

        /// <summary>
        /// 审批人
        /// </summary>
        public string? Approver { get; set; }
    }
}
